package com.segersten.othello.service.akka.lobby;

import akka.actor.Actor;
import akka.actor.UntypedActorFactory;

import com.segersten.othello.service.akka.GameObjectPool;
import com.segersten.othello.service.akka.game.BoardActorFactory;

public class LobbyServiceActorFactory implements UntypedActorFactory {
	
	private static final long serialVersionUID = 1L;
	
	BoardActorFactory boardActorFactory;

    private GameObjectPool gameObjectPool;

	public LobbyServiceActorFactory(GameObjectPool gameObjectPool, BoardActorFactory boardActorFactory) {
		this.boardActorFactory = boardActorFactory;
		this.gameObjectPool = gameObjectPool;
	}

	@Override
	public Actor create() {
		return new LobbyServiceActor(gameObjectPool, boardActorFactory);
	}
}